From 9cf5ff44a38b36a316b506758dbf6887de0e4a56 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 25 Jun 2014 13:58:59 +0100 Subject: [PATCH] xen: arm: initialise the grant_table_gpfn array on allocation Avoids leaking uninitialised memory via the grant table setup hypercall. This is XSA-101. Reported-by: Julien Grall Signed-off-by: Ian Campbell --- xen/arch/arm/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index e20ba0b39a..437885d41c 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -394,7 +394,7 @@ struct domain *alloc_domain_struct(void) return NULL; clear_page(d); - d->arch.grant_table_gpfn = xmalloc_array(xen_pfn_t, max_nr_grant_frames); + d->arch.grant_table_gpfn = xzalloc_array(xen_pfn_t, max_nr_grant_frames); return d; } -- 2.30.2